using System;
using System.Drawing;

using SdlDotNet.Graphics;

using Game.Input;
using Game.Output;

namespace Game.Utils
{
	public static class CSurfaceFactory
	{
		public static void Initialize()
		{
			CConsole.ReportClassInit(System.Reflection.MethodInfo.GetCurrentMethod().DeclaringType.Name);
		}
		
		public static void CreateSurface(out Surface p_surface, Size p_size)
		{
			p_surface = (new Surface(p_size)).Convert(CScreen.Surface, true, false);
			
			p_surface.Fill(Color.FromArgb(0, 255, 0, 255));
			p_surface.Transparent = true;
			p_surface.TransparentColor = Color.FromArgb(0, 0, 0, 255);
		}
	}
}
